package com.neusoft.feign;

import org.springframework.cloud.openfeign.FeignClient;

import com.neusoft.po.CommonResult;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(name="food-server",fallback=FoodFeignClientCallBack.class)
public interface FoodFeignClient {
	
	@GetMapping("/FoodController/listFoodByBusinessId/{businessId}")
	 public CommonResult listFoodByBusinessId(@PathVariable("businessId") Integer businessId);
	
	@GetMapping("/CartController/listCart/{userId}")
	 public CommonResult listCart(@PathVariable("userId") Integer userId);
	
	@GetMapping("/DeliveryAddressController/listDeliveryAddressByUserId/{userId}")
	 public CommonResult listDeliveryAddressByUserId(@PathVariable("userId") Integer userId);
	
	@GetMapping("/OrdersController/listOrdersByUserId/{userId}")
	 public CommonResult listOrdersByUserId(@PathVariable("userId") Integer userId);
	
	@GetMapping("/ScoreController/getTotalScore/{userId}")
	 public CommonResult getTotalScore(@PathVariable("userId") Integer userId);
	
	@GetMapping("/UserController/getUserById/{userId}")
	 public CommonResult getUserById(@PathVariable("userId") Integer userId);
	
}


	
	

